package com.zs.demo.status;

import com.zs.demo.common.response.IResponseStatus;
import com.zs.demo.common.util.BussinessCode;
import lombok.AllArgsConstructor;

/* @Desc: 用户-响应状态码
 * @author:zhengs
 * @Time: 2018/11/20 10:07
 * @Copyright: © zhengs 版权所有  
 * @Warning: 本内容仅限于本公司内部传阅,禁止外泄或用于其它商业目的
 */
@AllArgsConstructor
public enum UserStatus implements IResponseStatus {
    USER_ADD_FAIL(BussinessCode.USER +1,"添加用户失败"),
    USER_NOT_EXISTS(BussinessCode.USER +2,"用户不存在"),
    USER_GET_FAIL(BussinessCode.USER +3,"用户信息获取失败"),
    USER_NOT_LOCK_MY(BussinessCode.USER +4,"不能锁定自己的账户"),
    USER_NOT_DEL_MY(BussinessCode.USER +5,"不能删除自己的账户！"),
    USER_EXISTS_UPDATE_FAIL(BussinessCode.USER +6,"该登录名已存在，请换一个登陆名！"),
    USER_ROLE_FAIL(BussinessCode.USER +7,"用户权限关联失败"),
    USER_PWD_RESET_FAIL(BussinessCode.USER +8,"重置密码失败！");

    public Integer code;

    public String msg;

    public Integer getStatus(){
        return this.code;
    }

    public String getMsg(){
        return this.msg;
    }
}
